﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="Monster">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Icon" type="xs:string" />
				<xs:element name="Type" type="xs:string" />
				<xs:element name="MaxHealth" type="xs:positiveInteger" />
				<xs:element name="Attack" type="xs:positiveInteger" />
				<xs:element name="Defense" type="xs:positiveInteger" />
				<xs:element name="MovementPoints" type="xs:positiveInteger" />
				<xs:element name="Actions" type="xs:positiveInteger" />
				<xs:element minOccurs="0" name="SpellPoints" type="xs:nonNegativeInteger"/>
				<xs:element name="DeploymentCost" type="xs:positiveInteger" />
				<xs:element name="TerrainMovementCosts">
					<xs:complexType>
						<xs:sequence>
							<xs:element maxOccurs="8" name="terrain">
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:nonNegativeInteger">
											<xs:attribute name="type">
												<xs:simpleType>
													<xs:restriction base="xs:string">
														<xs:enumeration value="field" />
														<xs:enumeration value="forest" />
														<xs:enumeration value="grass" />
														<xs:enumeration value="hills" />
														<xs:enumeration value="mountain" />
														<xs:enumeration value="swamp" />
														<xs:enumeration value="tundra" />
														<xs:enumeration value="water" />
													</xs:restriction>
												</xs:simpleType>
											</xs:attribute>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="Abilities">
					<xs:complexType>
						<xs:sequence>
							<xs:element minOccurs="0" maxOccurs="unbounded" name="ability">
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:enumeration value="diving" />
										<xs:enumeration value="enchantment" />
										<xs:enumeration value="ferocity" />
										<xs:enumeration value="flight" />
										<xs:enumeration value="giant" />
										<xs:enumeration value="necromancy" />
										<xs:enumeration value="sorcery" />
										<xs:enumeration value="stealth" />
										<xs:enumeration value="swarm" />
										<xs:enumeration value="undead" />
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>